<template>
  <div class="recommends">
    <div class="recommends-item" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt />
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "RecommendView",
  props: {
    recommends: {
      type: Array,
      default: []
    }
  }
};
</script>

<style scoped>
.recommends {
  display: flex;
  width: 100%;
  padding: 10px 0 15px;
  border-bottom: 8px #eee solid;
}
.recommends-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
}
.recommends-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 5px;
}
</style>
